package cn.gjxblog.common.model;

import lombok.Data;

/**
 * @author gjx
 * @version v1.0
 * @Description 分页条件
 * @date 2018/12/12 10:40
 */
@Data
public class PageCondition<T> {

    private  Integer pageSize = 2;
    private  Integer pageNum = 1;
    private String  sort = "time_desc";//price_desc,price_asc,time_desc
    private T obj;

    public PageCondition() {

    }

    public PageCondition(Integer pageSize, Integer pageNum) {
        this.pageSize = pageSize;
        this.pageNum = pageNum;
    }
}
